# 定义地区价格表
price_table = {
    "01": {"region": "华东地区", "base_price": 13, "extra_price_per_kg": 3},
    "02": {"region": "华南地区", "base_price": 12, "extra_price_per_kg": 2},
    "03": {"region": "华北地区", "base_price": 14, "extra_price_per_kg": 4}
}

def calculate_shipping_fee(region_code, weight):
    if region_code not in price_table:
        return None, None, "无效的地区编号"
    
    region_info = price_table[region_code]
    base_price = region_info["base_price"]
    extra_price_per_kg = region_info["extra_price_per_kg"]


    # 计算费用
    if weight <= 2:
        total_fee = base_price
    else:
        extra_weight = weight - 2
        total_fee = base_price + (extra_weight * extra_price_per_kg)

    return region_info["region"], weight, total_fee

def main():
    # 输入地区编号和邮件重量
    region_code = input("请输入地区编号（01、02 或 03）：")
    weight = float(input("请输入邮件重量（kg）："))

    # 计算快递费
    region, weight, fee = calculate_shipping_fee(region_code, weight)
    
    if region is None:
        print(fee)
    else:
        # 输出结果
        print(f"快递发往{region}，重{weight}kg，快递费是：{fee}元")

if __name__ == "__main__":
    main()